import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false
App.mpType = 'app'

const app = new Vue(App)
app.$mount()

export default {
  // 这个字段走 app.json
  config: {
    // 页面前带有 ^ 符号的，会被编译成首页，其他页面可以选填，我们会自动把 webpack entry 里面的入口页面加进去
    pages: ['^pages/home/main', 'pages/renew/main', 'pages/my/main', 'pages/gallery/main', 'pages/combo/main'],
    window: {
      backgroundTextStyle: 'light',
      navigationBarBackgroundColor: '#fff',
      navigationBarTitleText: '有米家装',
      navigationBarTextStyle: 'black'
    },
    tabBar: {
      color: '#272636',
      selectedColor: '#FFD161',
      backgroundColor: '#fff',
      borderStyle: '#a8a8a8',
      list: [{
        pagePath: 'pages/home/main',
        iconPath: 'static/images/home.png',
        selectedIconPath: 'static/images/home-selected.png',
        color: 'white',
        text: '首页'
      },
      {
        pagePath: 'pages/renew/main',
        iconPath: 'static/images/order.png',
        selectedIconPath: 'static/images/order-selected.png',
        text: '保修/换新'
      },
      {
        pagePath: 'pages/gallery/main',
        iconPath: 'static/images/order.png',
        selectedIconPath: 'static/images/order-selected.png',
        text: '图库'
      },
      {
        pagePath: 'pages/my/main',
        iconPath: 'static/images/my.png',
        selectedIconPath: 'static/images/my-selected.png',
        text: '我的'
      }
      ]}
  }
}
